import { zrRequest } from "./index"

export function queryUrlsBySpaceId(data){
  return zrRequest.get({
    url: "space/var/list",
    data
  })
}

export function queryRealData(data){
  return zrRequest.post({
    url: "root/realData",
    data
  })
}

// 遥控
export function controlDoCommand (data) {
  return zrRequest.post({
    url: `root/doCommand`,
    data
  })
}

//查询遥控结果
export function controlCommandResult (data) {
  return zrRequest.post({
    url: `root/commandResult`,
    data
  })
}

// 获取当前分组数据
export function querySpaceGroupData (data) {
  return zrRequest.get({
    url: `space/var/list`,
    data
  })
}

// 上传扫码信息
export function uploadChargeDetectInfo(data){
  return zrRequest.post({
    url: "vehicleDetect/minProgram/uploadChargeDetectInfo",
    data
  })
}

// 更新inst表信息
export function updateInstInfo(data){
  return zrRequest.put({
    url: "detect/project/inst",
    data
  })
}



